#---------------------------------------------------------------------------
#VARIABLE DEFINATION FOR COMMON USAGE 
#20130221 colin created
#20130924 update for CFLAGS_SO
#---------------------------------------------------------------------------

HOSTNAME = $(shell hostname) 


ifeq ($(HOSTNAME),RackAblade2 )
KDL_ROOT = /home2/wangke/dec18/KDL/
GCC = /usr/bin/gcc
else
KDL_ROOT = /mnt/hgfs/sharedFolder/kdl
GCC = /usr/bin/gcc
endif

#@echo "aaa"

TARGET_BIN = ${KDL_ROOT}/bin
TARGET_LIB = ${KDL_ROOT}/lib
SRC_KDL = ${KDL_ROOT}/src
SRC_KB  = ${KDL_ROOT}/kb
SRC_HEADER = ${KDL_ROOT}/include
SRC_3RDTOOL = ${KDL_ROOT}/3rdtool

#20130924: always in -g mode. Should provide a mode to generate release code!
CFLAGS =  -DDEBUG -g -Wall
CFLAGS_SO = ${CFLAGS} -fPIC
#LD = /usr/ucb/ld
#AR = /usr/ccs/bin/ar
GCC_HEADER = /usr/local/include
GCC_LIB = /usr/local/lib


ifndef BUILD_TIME
	BUILD_TIME := $(shell date '+%Y%m%d%H%M')
	export BUILD_TIME
endif
